﻿[[title="项目报告",pagesize="",orderby="",condition=""]]
<script language="javascript" type="text/javascript">
    function window.onload() {
        wmsCommon.setEditDivStyle("tabDiv", 0.99);
    }
    function changeWindowSize() {
        wmsCommon.setEditDivStyle("tabDiv", 0.99);
    }
    $(function () {
        var btnAdd = $(($(".imgBtn")[0]));
        btnAdd.bind('click', function () {
            var rows = $(".rows");
            if (!rows || rows.length == 0) return;
            var lastRow = $(rows[rows.length - 1]);
            lastRow.css("height", 30);
        });
        var dismembermentData = eval(wmsCommon.execCommand(String.format("sys(#ProjectdismembermentManager.GetDismembermentByProjectGUID('{0}'))", "$request.QueryString.get('projectGUID')")));
        wmsCommon.LoadItem(dismembermentData);
        var saveBtn = $($(".btnS .imgBtn")[0]);

        if ($("#LableTitle").length > 0) {
            GetProjectName();
        };
        var textAreas = $("textarea");
        wmsBiz.dealWithTextAreas(textAreas);
    });

    function GetProjectName() {//在执行添加操作时去获取所属项目的名称

        var projectName = wmsCommon.execCommand(String.format("sys(#ProjectManager.GetProjectNameByProjectGUID('{0}'))", "$request.QueryString.get('projectGUID')"));
        $("#projectN input").val(projectName);
    }

   

   
</script>
<table class="DisplayArea" id="MainTableInfo" cellpadding="0" cellspacing="0" align="center"
    style="width: 100%; height: 100%">
    <tr>
        <td class="headmiddle" style="height: 26px">
            #if($request.QueryString.get_Item("opt")=="1") <span id="LableTitle">新增实施项目报告</span>
            #else <span id="LableTitle2">修改实施项目报告</span> #end
        </td>
    </tr>
    <tr>
        <td class="centermiddle">
            <table id="contenttb" class="DisplayTable">
                <tr>
                    <td style="width: 80px">
                        $projectQuestion.Columns.get_Item("projectName").DisplayName
                    </td>
                    <td style="width: 40%" id="projectN">
                        $projectQuestion.Rows.get_Item(0).get_Item("projectName").Render()
                    </td>
                    <td style="width: 80px">
                        $projectQuestion.Columns.get_Item("mscrm").DisplayName
                    </td>
                    <td>
                        $projectQuestion.Rows.get_Item(0).get_Item("mscrm").Render()
                    </td>
                </tr>
                <tr>
                    <td style="width: 80px">
                        $projectQuestion.Columns.get_Item("projectPerson").DisplayName
                    </td>
                    <td>
                        $projectQuestion.Rows.get_Item(0).get_Item("projectPerson").Render()
                    </td>
                    <td style="width: 80px">
                        $projectQuestion.Columns.get_Item("projectReportCycle").DisplayName
                    </td>
                    <td>
                        $projectQuestion.Rows.get_Item(0).get_Item("projectReportCycle").Render() &nbsp;至&nbsp;
                        $projectQuestion.Rows.get_Item(0).get_Item("reportCycleEnd").Render()
                    </td>
                </tr>
                <tr>
                    <td style="width: 80px">
                        $projectQuestion.Columns.get_Item("questionDesc").DisplayName
                    </td>
                    <td>
                        $projectQuestion.Rows.get_Item(0).get_Item("questionDesc").Render()
                    </td>
                </tr>
                <tr style="display: none">
                    <td colspan="4">
                        $projectQuestion.Rows.get_Item(0).get_Item("repotGuid").Render("defaultValue=$dataContext.Evaluate('sys(#CommonFunction.CreateGUID())');")
                        $projectQuestion.Rows.get_Item(0).get_Item("cteateNo").Render("defaultValue=$session.get_Item('userNo');")
                        $projectQuestion.Rows.get_Item(0).get_Item("commitDate").Render("defaultValue=$dataContext.GetDate();")
                        <span class="projectID">$projectQuestion.Rows.get_Item(0).get_Item("projectGUID").Render('defaultValue=$request.QueryString.get("projectGUID");')</span>
                    </td>
                </tr>
            </table>
            <table>
                <tr>
                    <td colspan="4" valign="top">
                        <!--tab  标签列表  -->
                        <div id="tabDiv">
                            <!-- 项目报告-->
                            <div id="tab1">
                                <div style="border: 1px solid #95B0CB; margin-top: 0; margin-left: 10px; width: 75px;
                                    font-size: 13px; font-weight: bold; padding-top: 3px; padding-left: 3px; padding-bottom: 3px;">
                                    项目报告</div>
                                <div style="border: 1px solid #95B0CB; margin-top: 0; margin-left: 10px; width: 100%">
                                    <table class="tblList" style="border-collapse: collapse; color: #95B0CB" border="0"
                                        rules="all" cellspacing="0">
                                        <tr>
                                            <th>
                                                分解项名称
                                            </th>
                                            <th>
                                                执行过程描述
                                            </th>
                                            <th>
                                                完成状态
                                            </th>
                                            <th>
                                                分解项名称
                                            </th>
                                            <th>
                                                执行过程描述
                                            </th>
                                            <th>
                                                完成状态
                                            </th>
                                        </tr>
                                    </table>
                                </div>
                                <div style="border: 1px solid #95B0CB; margin-top: 10px; margin-left: 10px; width: 135px;
                                    font-size: 13px; font-weight: bold; padding-top: 3px; padding-left: 3px; padding-bottom: 3px;">
                                    存在问题及解决方案</div>
                                <div id="tab22" class="hide2" style="border: 1px solid #95B0CB; margin-top: 0px;
                                    margin-left: 10px; width: 100%">
                                    <table>
                                        <tr>
                                            <td colspan="5" style="text-align: center;" class="newAdd">
                                                $render.RenderButton(" text=新增; displayType=button ; actionType=new;clientMethod=wmsCommon.newRow('projectSolution');")
                                                $render.RenderButton(" text=删除; displayType=button ; actionType=delete; clientMethod=DelRow('projectSolution');")
                                            </td>
                                        </tr>
                                    </table>
                                    <table class="tblList" id="projectSolution" style="border-collapse: collapse; color: #95B0CB"
                                        border="0" rules="all" cellspacing="0">
                                        <tr>
                                            <th style="width: 30px;">
                                                <span style="cursor: hand" onclick="wmsCommon.checkedAll('projectSolution')">选择</span>
                                            </th>
                                            <th>
                                                $projectQuestion.Childs.get_Item(0).Columns.get_Item("qusetionDes").DisplayName
                                            </th>
                                            <th>
                                                $projectQuestion.Childs.get_Item(0).Columns.get_Item("needAttention").DisplayName
                                            </th>
                                            <th>
                                                $projectQuestion.Childs.get_Item(0).Columns.get_Item("questionState").DisplayName
                                            </th>
                                            <th>
                                                $projectQuestion.Childs.get_Item(0).Columns.get_Item("questionType").DisplayName
                                            </th>
                                            <th>
                                                $projectQuestion.Childs.get_Item(0).Columns.get_Item("userNo").DisplayName
                                            </th>
                                            <th>
                                                $projectQuestion.Childs.get_Item(0).Columns.get_Item("expectSolveTime").DisplayName
                                            </th>
                                            <th>
                                                $projectQuestion.Childs.get_Item(0).Columns.get_Item("advise").DisplayName
                                            </th>
                                            <th>
                                                $projectQuestion.Childs.get_Item(0).Columns.get_Item("upfileGuid").DisplayName
                                            </th>
                                        </tr>
                                        #foreach($row in $projectQuestion.Childs.get_Item(0).Rows) [[section:projectSolution{]]
                                        <tr onmouseout="wmsCommon.onMouseOut(this)" onmouseover="wmsCommon.onMouseOver(this)" class="rows">
                                            <td align="center" style="width: 40px">
                                                <input type="checkbox" style="border: 0; cursor: hand" />
                                            </td>
                                            <td style="width:400px;" >
                                                $row.get_Item("qusetionDes").Render("onmouseover=wmsBiz.textAreaBindMouseOnver(this);")
                                            </td>
                                            <td>
                                                $row.get_Item("needAttention").Render()
                                            </td>
                                            <td>
                                                $row.get_Item("questionState").Render()
                                            </td>
                                            <td>
                                                $row.get_Item("questionType").Render()
                                            </td>
                                            <td>
                                                $row.get_Item("userNo").Render()
                                            </td>
                                            <td style="text-align: center">
                                                $row.get_Item("expectSolveTime").Render()
                                            </td>
                                            <td style="width:400px;" >
                                                $row.get_Item("advise").Render("onmouseover=wmsBiz.textAreaBindMouseOnver(this);")
                                            </td>
                                            <td style="text-align: center">
                                                $row.get_Item("upfileGuid").Render()
                                            </td>
                                        </tr>
                                        [[}]] #end
                                    </table>
                                </div>
                            </div>
                        </div>
                    </td>
                </tr>
            </table>
            <!-- edit content end-->
        </td>
    </tr>
    <tr style="height: 20px;">
        <td colspan="4" valign="middle" style="text-align: center; height: 20px;">
            <div style="height: 20px; background-color: rgb(233, 231, 215);" id="btnL" class="btnS">
                $render.RenderButton(" text=保存; displayType=button ; actionType=save; clientMethod=submitValidatePage();serverMethod=wmsCommon.pubSaveAndRefPage1('projectQuestion','',1);")
                $render.RenderButton(" text=关闭; displayType=button ; actionType=close; clientMethod=wmsCommon.closeWin();")
            </div>
        </td>
    </tr>
</table>
